package cn.edu.zut.cs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 称重数据管理
 * </p>
 *
 * @author weighing
 * @since 2021-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Weighing implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 称重编号
     */
    @TableId(value = "weightid", type = IdType.AUTO)
    private Integer weightid;

    /**
     * 重量
     */
    private Double weight;


    /**
     * 称重时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date weighttime;

    /**
     * 设备编号
     */
    private String equid;

    private String unit;
    private String gn;
    private String weicompany;
    private String weilocation;

}
